﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Web;
using System.Web.Mvc;
using Domain.Entity;

namespace Pro260Website.HtmlHelpers
{
    public static class ImageDisplayHelpers
    {
        public static MvcHtmlString GlossyGlassImageDisplay(this HtmlHelper html,
            string actionName, string controllerName, int imageId, int width, int height, string urlActionName = "", string urlControllerName = "")
        {
            var tag = new TagBuilder("a");
            tag.AddCssClass("itemDisplayImage");
            //string imageUrl = 
            //string value = string.Format(
            //    "background-color: white ! important; background-image:url(@Url.Action("GetDisplayImage", "Game",
            //      new { Model.Id })), none ! important; background-repeat: no-repeat, repeat ! important; background-attachment: scroll, 
            //                                                                                                                                                                                                                                      scroll ! important; background-position: center center, 0% 0% ! 
            //      important; background-clip: border-box, border-box ! important; 
            //     background-origin: padding-box, padding-box ! important; width: 175px; 
            //     height: 200px; background-size: 100% 100%;")

            //if(!urlActionName.Equals("") && !urlControllerName.Equals(""))
            //tag.MergeAttribute("href", UrlHelper.GenerateUrl(null, urlActionName, urlControllerName, null, null, null, false));
            //tag.MergeAttribute("style",);                   
            return null;
        }
    }
}